<?php
require_once 'appinclude.php'; 	

$message_name=$_REQUEST['message_name'];
$index=$_REQUEST['index'];
$filename=$_REQUEST['filename'];
$recipient=$_REQUEST['recipient'];

echo "
<fb:dialogresponse>
<fb:dialog-title>
	Are you sure?
</fb:dialog-title> 
<fb:dialog-content>
	Are you sure you want to delete <b>$message_name</b>?
	<form id='delete_form_$index' action=\"$source.php\" method=\"post\"> 
		<input type=\"hidden\" name=\"delete\" value=\"delete\">
		<input type=\"hidden\" name=\"index\" value=\"$index\">";
if ($filename!=NULL) {
	echo "<input type=\"hidden\" name=\"filename\" value=\"$filename\">";
} else {
	echo "<input type=\"hidden\" name=\"recipient\" value=\"$recipient\">";
}
echo "
</form></br>
</fb:dialog-content>  
<fb:dialog-button type=\"button\" value=\"Close\" close_dialog=1 /> 
</fb:dialogresponse>";

